<?php
	//includes
	require_once 'includes.php';

	//delete all
//	DB::ExecuteSQL("
//		DELETE FROM t_winery_vintages;
//	");
	
	$startTime = microtime() + time();
	
	//WineLog (wine source)
	$wineSearcher = new WineSearcher();

	//gets all URLs
	$result = $wineSearcher->GetAndSaveVintages($_GET['offset'], $_GET['number']);
	
	$endTime = microtime() + time();
	
	//totals
	$resultTime = $endTime - $startTime;
	echo "Total time: $resultTime; Success: {$result['success']}; Fail: {$result['fail']}; ";
?>